package com.birdy.service.impl;

import com.birdy.mapper.UserMapper;
import com.birdy.service.IUserService;
import com.birdy.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author birdy
 * @date 2022/3/31 10:13 PM
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public int addUserInfo(String openid, UserInfo userInfo) {
        return userMapper.addUserInfo(openid, userInfo);
    }

    @Override
    public String checkUserInfoRegister(String openid) {
        return userMapper.checkUserInfoRegister(openid);
    }

    @Override
    public int updateUserInfo(String openid, UserInfo userInfo) {
        return userMapper.updateUserInfo(openid, userInfo);
    }

    @Override
    public UserInfo getUserInfo(String openid) {
        return userMapper.getUserInfo(openid);
    }


}
